			<div class="main">
				<div id="user-controls">
					<ul class="user-tabs">
						<?php if(smit_is_user()): ?>
						<li>
							<?php echo smit_get_username(); ?>
						</li>
						<?php else: ?>
						<li><?php echo smit_lang('global.greeting'); ?></li>
						<?php endif; ?>
						<!--<li><a href="#" onclick="$('#login').slideToggle(); return false;">Login</a></li>-->
						<?php if(smit_is_user()): ?>
						<li>
						<?php echo smit_link(array('core', 'logout'), smit_lang('global.logout'))?>
						</li>
						<?php else: ?>
						<li>
						<?php echo smit_link(array('core', 'login'), smit_lang('global.login'))?>
						</li>
						<li>
						<?php echo smit_link(array('core', 'register'), smit_lang('global.register'))?>
						</li>
						<?php endif; ?>
					</ul>
					<form action="#" method="post">
					<ul class="user-tabs" id="login" style="position: relative;<?php echo $smit_right; ?>: 20px;display: none;">
						<li class="nohover"><input type="text" name="username" value="Username" /></li>
						<li class="nohover"><input type="password" name="password" value="Password" /></li>
						<li class="nohover"><input type="submit" name="submit" value="Login" /></li>
					</ul>
					</form>
					<?php if(smit_is_user()): ?>
					<ul class="user-tabs" style="float: <?php echo $smit_right; ?>;margin-<?php echo $smit_right; ?>: 20px;">
						<li><?php echo smit_link(array('usercp'), smit_lang('global.userpanel')); ?></li>
						<li><?php echo smit_link(array('usercp', 'conversations'), smit_lang('global.conversations')); ?> (0)</li>
					</ul>
					<?php endif; ?>
				</div>
			</div>
